package br.com.midiaseducativas.tutor.events
{
	import flash.events.Event;
	
	public class FeedBackEvent extends Event {
		
		public static const TIP:String = "FeedBackEvent.TIP";
		public static const RIGHT:String = "FeedBackEvent.RIGHT";
		public static const WRONG:String = "FeedBackEvent.WRONG";
		public static const COMPLETE:String = "FeedBackEvent.COMPLETE";
		
		private var _title:String;
		private var _text:String;
		private var _time:Number;
		
		public function FeedBackEvent(type:String, pTitle:String, pText:String, bubbles:Boolean=false, cancelable:Boolean=false) {
			this.title = pTitle;
			this.text = pText;
			super(type, bubbles, cancelable);
		}

		public function get time():Number
		{
			return _time;
		}

		public function set time(value:Number):void
		{
			_time = value;
		}

		public function get text():String
		{
			return _text;
		}

		public function set text(value:String):void
		{
			_text = value;
		}

		public function get title():String
		{
			return _title;
		}

		public function set title(value:String):void
		{
			_title = value;
		}

	}
}